﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace Kiosk
{
    public partial class frmSifre : Form
    {
        string sifre = "";
        public frmSifre()
        {
            InitializeComponent();
        }

        private void frmSifre_Load(object sender, EventArgs e)
        {

        }

        private void ButonClick(object sender, EventArgs e)
        {
            SimpleButton btn = sender as SimpleButton;
            if (btn != null)
            {
                sifre += btn.Text;
            }
        }

        private void simpleButton11_Click(object sender, EventArgs e)
        {
            if (sifre == "3062435")
            {
                this.DialogResult = System.Windows.Forms.DialogResult.OK;
            }
        }

        private void simpleButton12_Click(object sender, EventArgs e)
        {
            sifre = "";
        }
    }
}
